﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net;

namespace Skype.Client {
	static class DataLogic {
		#region Public
		public static IEnumerable<String> GetHostnames() {
			List<String> list = new List<string>();
			list.Add("127.0.0.1");
			var adr = Dns.GetHostAddresses(Dns.GetHostName());
			foreach (var ip in adr) {
				if (ip.AddressFamily == System.Net.Sockets.AddressFamily.InterNetwork) {
					list.Add(ip.ToString());
				}
			}
			
			return list;
		}
		#endregion
	}
}
